/**
 * 
 */
package fr.kptn.musixmatchwrapper.dto.chart.artist.get;

import com.google.gson.annotations.SerializedName;

import fr.kptn.musixmatchwrapper.dto.IResponse;
import fr.kptn.musixmatchwrapper.dto.ResponseHeader;

/**
 * The entire response of a get artists chart API call
 * 
 * @author Sylvain
 * 
 */
public class ArtistChartGetResponse implements IResponse {

	/** The message part of the response **/
	@SerializedName("message")
	private ArtistChartGetResponseContainer mContainer;

	/**
	 * @return the container
	 */
	public ArtistChartGetResponseContainer getContainer() {
		return mContainer;
	}

	/**
	 * @param pContainer
	 *            the container to set
	 */
	public void setContainer(ArtistChartGetResponseContainer pContainer) {
		mContainer = pContainer;
	}

	@Override
	public ResponseHeader getHeader() {
		if (mContainer != null) {
			return mContainer.getHeader();
		}
		return null;
	}

	@Override
	public Object getData() {
		if (mContainer != null) {
			return mContainer.getBody().getArtistList();
		}
		return null;
	}
}
